package com.lenovo.server.weixin;


import org.hibernate.Session;

import com.lenovo.server.utils.HibDB;
import com.lenovo.server.weixin.bean.Log;

public class slog {

	public static void p(String str){
		System.out.println(str);
		Log log = new Log();
		log.setLog(str);
		Session session = HibDB.sf.openSession();
		session.beginTransaction();
		session.save(log);
		session.getTransaction().commit();
	}
}
